package design_pattern.decorator.demo02;

/**
 * @version 1.0.0
 * Created by cyd on 2022-06-06 12:33:51
 * @ClassName : design_pattern.decorator.demo02.Concreteperson
 * @Description : 类描述
 */
public class ConcretePerson implements Person {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ConcretePerson(String name) {
        this.name = name;
    }

    @Override
    public void wear() {
        System.out.println(name+"：穿内衣");
    }
}
